package com.hongmeng.teamwork.service;

import com.hongmeng.teamwork.entity.po.TeamworkProjectGroupRel;

import java.util.List;

/**
 * (HongmengTeamworkProjectGroupRel)表服务接口
 *
 * @author makejava
 * @since 2023-11-17 13:53:05
 */
public interface ITeamworkProjectGroupRelService {

    /**
     * 通过项目ID查询单条数据
     *
     * @return 实例对象
     */
    TeamworkProjectGroupRel queryByProjectId(Long projectId);

    /**
     * 根据条件查询
     *
     * @param teamworkProjectGroupRel 筛选条件
     * @return 查询结果
     */
    List<TeamworkProjectGroupRel> queryByCondition(TeamworkProjectGroupRel teamworkProjectGroupRel);

    /**
     * 新增数据
     *
     * @param teamworkProjectGroupRel 实例对象
     * @return 实例对象
     */
    boolean insert(TeamworkProjectGroupRel teamworkProjectGroupRel);

    /**
     * 通过项目 id 删除数据
     *
     * @return 是否成功
     */
    boolean deleteByProjectId(Long projectId);

}
